import Vue from "vue";
import App from "./App.vue";

import VueRouter from "vue-router";

Vue.use(VueRouter); //会自动注册两个全局组件: router-view router-link

import HmFind from "./views/HmFind.vue";
import HmFriend from "./views/HmFriend.vue";
import HmMy from "./views/HmMy.vue";

const routes = [
  { path: "/find", component: HmFind },
  { path: "/friend", component: HmFriend },
  { path: "/my", component: HmMy },
];
const router = new VueRouter({
  routes,
});

import "bootstrap/dist/css/bootstrap.css";
Vue.config.productionTip = false;
new Vue({
  render: (h) => h(App),
  router,
}).$mount("#app");
